package com.gr.catanddog_common.damin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Repository;

import java.util.List;

@TableName("userinfo")
@Data
@Repository
public class User {
    @TableId(value = "user_id",type = IdType.AUTO)
    //主键id
    Integer id;
    @TableField("user_name")
    //用户名
    String userName;
    @TableField("user_password")
    //密码
    String password;
    @TableField("user_phone")
    //电话号码
    String phone;
    //头像
    @TableField("user_img")
    String headPortrait;
    @TableField("create_time")
    String iat;
    @TableField("user_token")
    String token;
    @TableField(exist = false)
    String code;
    @TableField(exist = false)
    String uuid;
    @TableField(exist = false)
    List<Content> contents;
    @TableField(exist = false)
    List<Content>collectContents;
    @TableField(exist = false)
    Integer likes;
}
